<?php

class Admin_Model_Mail extends Zend_Db_Table_Abstract
{
    protected $_name = 'mailtemplate';
    public function getAllData(){
    	$query = $this->select()
                        ->from($this->_name);                        
    	return $this->fetchAll($query);
    }
    public function updateData($id, $data=array()){
        return $this->update($data, 'id = "'.$id.'"');
    }
    public function getDataId($id){        
        $query = $this->select()                        
                        ->from($this->_name)
                        ->where('id = "'.$id.'"');
        return $this->fetchRow($query);
    }
}